<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改信息登记')" />
    <style>
        .label-tip{
            padding-bottom: 5px ;
            border-bottom: 2px solid #f5f5f5;
            margin: 15px 0;
        }
    </style>
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-register-edit" th:object="${infoConcreteRegister}">
            <h4 class="label-tip">必填项</h4>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">车牌号码：</label>
                <div class="col-sm-8">
                    <input name="plateNo" th:field="*{plateNo}" class="form-control" type="text" required disabled>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">混凝土标号：</label>
                <div class="col-sm-8">
                    <input name="concreteType" th:field="*{concreteType}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">混凝土方量(m³)：</label>
                <div class="col-sm-8">
                    <input name="concreteVolume" th:field="*{concreteVolume}" class="form-control" type="number" required>
                </div>
            </div>
            <h4 class="label-tip">选填项</h4>
            <input name="registerId" th:field="*{registerId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">公司名称：</label>
                <div class="col-sm-8">
                    <input name="companyName" th:field="*{companyName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">商混站名：</label>
                <div class="col-sm-8">
                    <input name="mixingStation" th:field="*{mixingStation}" class="form-control" type="text">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">机组编号：</label>
                <div class="col-sm-8">
                    <input name="machineUnit" th:field="*{machineUnit}" class="form-control" type="text">
                </div>
            </div>

            <div class="form-group">    
                <label class="col-sm-3 control-label">起始坍落度mm：</label>
                <div class="col-sm-8">
                    <input name="slumpStart" th:field="*{slumpStart}" class="form-control" type="number">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">工地坍落度mm：</label>
                <div class="col-sm-8">
                    <input name="slumpEnd" th:field="*{slumpEnd}" class="form-control" type="number">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "concrete/register";
        $("#form-register-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-register-edit').serialize());
            }
        }
    </script>
</body>
</html>